package com.dunshan.dunshanlogback.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

///**
// * @author .dunshan
// * @program: dunshan-pef
// * @description:
// * @date 2021-10-05 13:24:43
// */
@Configuration
public class ConfigDoConfig implements WebMvcConfigurer {

    @Autowired
    private CrossInterceptor.MdcLogEnhancerFilter logInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(logInterceptor);
    }

}
